<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>
<body>
  <div id="app">
    <a @click="handler('阿巴阿巴阿巴','外比巴波',$event)" href="http://www.baidu.com">{{msg}}</a>
  </div>
  <script src="./vue.js"></script>
  <script>
    var vm = new Vue({
      el:'#app',
      data:{
        msg:"vue good!"
      },
      methods:{
        handler(data1,data2,e) {
          e.preventDefault()
          console.log(data1,data2)
          this.msg+= ' '+data1 + ' '+data2
        } 
      }
     });
  </script>
</body>
</html>
